package com.yenlien.traceyun.business.entity;

import com.yenlien.traceyun.webase.entity.BaseIdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-12-30
 * 扫码记录
 **/

@Entity(name = "t_scan_record")
public class ScanRecord extends BaseIdEntity {

    /**
     * 时间
     */
    @Column(name = "createtime")
    private Date createtime;

    /**
     * 追溯码
     */
    @Column(name = "code", length = 32)
    private String code;

    /**
     * 地址
     */
    private String address;

    @Column(name = "company_id", length = 32)
    private String companyId;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }
}
